require 'semantictext/span'

module SemanticText
  
  class Paragraph
  	attr_reader :content

  	def initialize()
  		@content = []
  	end
	
	  #export as html
    def export_html
      out = "\n<p>"
      content.each {|element| out=out+element.export_html}
      out = out + "</p>"
    end
	
  	def <<(span)
  	  @content << span 
    end

  end
end